package com.qf.admin.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {

    @TableField("item_id")
    private Integer tid;

    private String name;

    private String type;   //商品类型

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("goods_id")
    private Integer gid;   //商品编号

    private String title;  //商品描述

    private BigDecimal price;  //价格

    private String status;   //商品状态

    @TableField("stock_num")
    private Integer stock;   //商品库存

    @TableField("create_time")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_time")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
